package com.zkzx.common.vo;

import com.alibaba.fastjson.JSON;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ErrorResult {
    public int ErrorCod;
    public String ErrorMessage;

    public static String getErrorResult(int ErrorCod,String ErrorMessage){
        ErrorResult errorResult = ErrorResult.builder()
                .ErrorCod(ErrorCod).ErrorMessage(ErrorMessage).build();

        return JSON.toJSONString(errorResult);
    }
}
